<?php

/**
 * Description of g
 *
 * @author Yefng
 */
namespace c\express;

class g extends \control
{
    var $table = 'express';
    
    /**
	 * 自动填充
	 * 
	 */
    function index_searchWord()
    {
    	$w = $this->db->escape(ltrim($_GET['w']));
		$res = $this->db->get($this->table, 'id, name', "name like '%$w%'");
    	ajax_json(array('status'=>TRUE, 'res'=>$res));
    }
}
